//
//  NEDConsoleConstant.m
//  NEDBugConsole_Example
//
//  Created by 98du on 2021/12/14.
//  Copyright © 2021 林宁宁. All rights reserved.
//

#import "NEDConsoleConstant.h"
#import "NEDConsoleENVViewController.h"
#import "NEDConsoleLogViewController.h"
#import "NEDConsoleSandboxViewController.h"
#import "NEDConsoleCrashViewController.h"
#import "NEDConsoleURLSchemeViewController.h"
#import "NEDConsoleHttpViewController.h"
#import "NEDConsoleLookinViewController.h"
#import "NEDConsoleDoraemonViewController.h"
#import "NEDConsoleTestViewController.h"


NSString * NEDConsoleItemTypeDes(NEDConsoleItemType type){
    if(type == NEDConsoleItemType_LOG)  return @"调试日志";
    if(type == NEDConsoleItemType_CRASH)  return @"崩溃日志";
    if(type == NEDConsoleItemType_SANDBOX)  return @"沙盒文件";
    if(type == NEDConsoleItemType_ENV)  return @"环境切换";
    if(type == NEDConsoleItemType_URLOpen)  return @"打开路由";
    if(type == NEDConsoleItemType_HTTP)  return @"网络请求";
    if(type == NEDConsoleItemType_Lookin)  return @"LookIn视图层级";
    if(type == NEDConsoleItemType_Doraemon)  return @"DoraemonKit";
    
    if(type == NEDConsoleItemType_DebugTest) return @"开发人员调试测试";
    return [NSString stringWithFormat:@"未知 - %@",@(type)];
}

Class NEDConsoleItemTypeMapVCClass(NEDConsoleItemType type){
    if(type == NEDConsoleItemType_LOG)  return NEDConsoleLogViewController.class;
    if(type == NEDConsoleItemType_CRASH)  return NEDConsoleCrashViewController.class;
    if(type == NEDConsoleItemType_SANDBOX)  return NEDConsoleSandboxViewController.class;
    if(type == NEDConsoleItemType_ENV)  return NEDConsoleENVViewController.class;
    if(type == NEDConsoleItemType_URLOpen)  return NEDConsoleURLSchemeViewController.class;
    if(type == NEDConsoleItemType_HTTP)  return NEDConsoleHttpViewController.class;
    if(type == NEDConsoleItemType_Lookin)  return NEDConsoleLookinViewController.class;
    if(type == NEDConsoleItemType_Doraemon)  return NEDConsoleDoraemonViewController.class;
    if(type == NEDConsoleItemType_DebugTest)  return NEDConsoleTestViewController.class;
    
    return NULL;
}

@implementation NEDConsoleConstant

@end
